<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="/TP/Public/css/style.css" />
    <!--[if IE 6]>
    <script src="/TP/Public/js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->    
    <script type="text/javascript" src="/TP/Public/js/jquery-1.11.1.min_044d0927.js"></script>
	<script type="text/javascript" src="/TP/Public/js/jquery.bxslider_e88acd1b.js"></script>
    
    <script type="text/javascript" src="/TP/Public/js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/TP/Public/js/menu.js"></script>    
        
	<script type="text/javascript" src="/TP/Public/js/select.js"></script>
    
	<script type="text/javascript" src="/TP/Public/js/lrscroll.js"></script>
    
    <script type="text/javascript" src="/TP/Public/js/iban.js"></script>
    <script type="text/javascript" src="/TP/Public/js/fban.js"></script>
    <script type="text/javascript" src="/TP/Public/js/f_ban.js"></script>
    <script type="text/javascript" src="/TP/Public/js/mban.js"></script>
    <script type="text/javascript" src="/TP/Public/js/bban.js"></script>
    <script type="text/javascript" src="/TP/Public/js/hban.js"></script>
    <script type="text/javascript" src="/TP/Public/js/tban.js"></script>
    
	<script type="text/javascript" src="/TP/Public/js/lrscroll_1.js"></script>
<title>数码商城</title>
</head>
<body>  
<!--Begin Header Begin-->
<div class="soubg">
	<div class="sou">
        <span class="fr">
        	<span class="fl">
                <?php if(empty($username)): ?>你好，请<a href="<?php echo U('Home/Login/index');?>">登录</a>&nbsp; <a href="<?php echo U('Home/User/Regist');?>" style="color:#ff4e00;">免费注册　</a>
                <?php else: ?>
                    你好&nbsp;<?php echo ($username); ?>&nbsp;<a href="<?php echo U('Home/index/tuichu');?>">退出</a><?php endif; ?> 
            <a href="<?php echo U('Home/member/index');?>">&nbsp;|个人中心</a>&nbsp;|
            </span>
        	　<span class="ss">
            	<div class="ss_list">
                	<a href="#">收藏夹</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="<?php echo U('Home/member/Member_Collect');?>">我的收藏夹</a></li>
                            </ul>
                        </div>
                    </div>     
                </div>
                <div class="ss_list">
                	<a href="#">客户服务</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
                <div class="ss_list">
                	<a href="#">网站导航</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="#">网站导航</a></li>
                                <li><a href="#">网站导航</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
            </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="/TP/Public/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<div class="top">
    <div class="logo"><img src="/TP/Public/images/logo.jpg" width="200" height="60" /></div>
     <div class="search">
      <form method="get" action="<?php echo U('home/list/seach');?>">
          <input type="text" name="seach" class="s_ipt" />
            <input type="submit" value="搜索" class="s_btn" />
        </form>                      
    </div>
    <!-- onmouseover="mouserover('user')"  [ <span>3</span> ] -->
    <div class="i_car" >
    	<div class="car_t" >购物车</div>
        <div class="car_bg">
       	
        <?php  if($_SESSION['user']['id']){ $buycar = M('buycar'); $map['uid'] = ['eq',session('user')['id']]; $blist = $buycar->where($map)->select(); echo ' <ul class="cars">'; foreach($blist as $blist){ echo '
                          <li>
                          <div class="img"><a href="#"><img src="/TP/Uploads/comm/'.$blist['goodspic'].'" width="58" height="58" /></a></div>
                            <div class="name"><a href="#">'.$blist['goodsname'].'</a></div>
                            <div class="price"><font color="#ff4e00">'.$blist['price'].'￥</font> X'.$blist['number'].'</div>
                          </li>
        
                      '; } echo '  </ul>'; }else{ echo '<div class="un_login">还未登录<a href="/TP/Home/Login/index.html" style="color:#ff4e00;">马上登录</a> 查看购物车！</div>'; } ?>

        </div>
    </div>
</div>
<script>
    // function mouserover(user){
    //     jq.get("<?php echo U('Home/Header/header');?>",{'user':user},function(data){
    //       // alert(data);
    //     });
    // }

</script>
<!--End Header End--> 
<!--Begin Menu Begin-->
<div class="menu_bg">
	<div class="menu">
    	<!--Begin 商品分类详情 Begin-->    
    	<div class="nav">
        	<div class="nav_t">全部商品分类</div>
            <div class="leftNav">
                <ul>
                <?php if(is_array($t_list)): $i = 0; $__LIST__ = $t_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$t_list): $mod = ($i % 2 );++$i;?><li>
                    	<div class="fj">
                        	<span class="n_img"><span></span><img src="/TP/Public/images/nav1.png" /></span>
                            <span class="fl"><?php echo ($t_list["name"]); ?></span>
                        </div> 
                        <?php if(!empty($t_list['lower'])): ?><div class="zj">
                            <div class="zj_l">
                             <?php if(is_array($t_list[lower])): $i = 0; $__LIST__ = $t_list[lower];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$w_list): $mod = ($i % 2 );++$i;?><div class="zj_l_c">
                                    <h2><a href="<?php echo U('Home/List/index',['id'=>$w_list['id']]);?>"><?php echo ($w_list['name']); ?></a></h2>
                                    <?php if(!empty($w_list['lower'])): if(is_array($w_list['lower'])): $i = 0; $__LIST__ = $w_list['lower'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$e_list): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Home/List/index',['id'=>$e_list['id']]);?>"><?php echo ($e_list['name']); ?></a>|<?php endforeach; endif; else: echo "" ;endif; endif; ?>
                                </div><?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                        
                        </div><?php endif; ?>
                    </li><?php endforeach; endif; else: echo "" ;endif; ?>

                </ul>            
            </div>
        </div>  
        <!--End 商品分类详情 End-->                                                     
    	<ul class="menu_r">                                                                                                                                               
        			<li><a href="/TP/index.php">首页</a></li>
            <?php if(is_array($bar)): foreach($bar as $key=>$bar): ?><li><a href="<?php echo U('Home/list/index',['id'=>$bar['id']]);?>"><?php echo ($bar["name"]); ?></a></li>
     <!--        <li><a href="Fresh.html">生鲜</a></li>
            <li><a href="HomeDecoration.html">家居</a></li>
            <li><a href="SuitDress.html">女装</a></li>
            <li><a href="MakeUp.html">美妆</a></li>
            <li><a href="Digital.html">数码</a></li>
            <li><a href="GroupBuying.html">团购</a></li> --><?php endforeach; endif; ?>
        </ul>

    </div>
</div>
<!--End Menu End--> 
<div class="i_bg bg_color">
	<div class="i_ban_bg">
		<!--Begin Banner Begin-->
    	<div class="banner">    	
            <div class="top_slide_wrap">
                <ul class="slide_box bxslider">
                <!-- 一号广告位 -->
                <?php if(is_array($advs_one)): foreach($advs_one as $key=>$advs_one): ?><li><a href="<?php echo ($advs_one["advslink"]); ?>"><img src="/TP/Uploads<?php echo ($advs_one["picname"]); ?>" width="740" height="401" /></a></li><?php endforeach; endif; ?>
                <!-- 一号广告位结束 -->
                    <!-- <li><img src="/TP/Public/images/ban1.jpg" width="740" height="401" /></li> 
                    <li><img src="/TP/Public/images/ban1.jpg" width="740" height="401" /></li>  -->
                </ul>	
                <div class="op_btns clearfix">
                    <a href="#" class="op_btn op_prev"><span></span></a>
                    <a href="#" class="op_btn op_next"><span></span></a>
                </div>        
            </div>
        </div>
        <script type="text/javascript">
        //var jq = jQuery.noConflict();
        (function(){
            $(".bxslider").bxSlider({
                auto:true,
                prevSelector:jq(".top_slide_wrap .op_prev")[0],nextSelector:jq(".top_slide_wrap .op_next")[0]
            });
        })();
        </script>
        <!--End Banner End-->
        <div class="inews">
        	<div class="news_t">
            	<span class="fr"><a href="<?php echo U('home/News/index');?>" target="blank">更多 ></a></span>新闻资讯
            </div>
            <ul>
                <?php if(is_array($news)): foreach($news as $key=>$news): ?><li><a href="<?php echo U('home/News/news',['id'=>$news['id']]);?>" target="blank"><?php echo ($news['title']); ?></a></li><?php endforeach; endif; ?>
            </ul>
            <div class="charge_t">
            	话费充值<div class="ch_t_icon"></div>
            </div>
            <form>
            <table border="0" style="width:205px; margin-top:10px;" cellspacing="0" cellpadding="0">
              <tr height="35">
                <td width="33">号码</td>
                <td><input type="text" value="" class="c_ipt" /></td>
              </tr>
              <tr height="35">
                <td>面值</td>
                <td>
                	<select class="jj" name="city">
                      <option value="0" selected="selected">100元</option>
                      <option value="1">50元</option>
                      <option value="2">30元</option>
                      <option value="3">20元</option>
                      <option value="4">10元</option>
                    </select>
                    <span style="color:#ff4e00; font-size:14px;">￥99.5</span>
                </td>
              </tr>
              <tr height="35">
                <td colspan="2"><input type="submit" value="立即充值" class="c_btn" /></td>
              </tr>
            </table>
            </form>
        </div>
    </div>
    <!--Begin 热门商品 Begin-->
    <div class="content mar_10">
    	<div class="h_l_img">
        <!-- 二号广告位 -->
        	<div class="img"><a href="<?php echo ($advs_two["advslink"]); ?>"><img src="/TP/Uploads<?php echo ($advs_two["picname"]); ?>" width="188" height="188" /></a></div>
            <!-- 结束 -->
            <div class="pri_bg">
                <!-- <span class="price fl">￥53.00</span> -->
                <!-- <span class="fr">16R</span> -->
            </div>
        </div>
        <div class="hot_pro">        	
        	<div id="featureContainer">
                <div id="feature">
                    <div id="block">
                        <div id="botton-scroll">
                            <ul class="featureUL">
                            <!-- 第一次 热卖商品 -->
                                <?php if(is_array($hot)): foreach($hot as $key=>$hot): ?><li class="featureBox">
                                    <div class="box">
                                    	<div class="h_icon"><img src="/TP/Public/images/hot.png" width="50" height="50" /></div>
                                        <div class="imgbg">
                                        	<a href="<?php echo U('Home/Goods/index',['id'=>$hot['id']]);?>"><img src="/TP/Uploads/comm/<?php echo ($hot["pic"]); ?>" width="160" height="136" /></a>
                                        </div>                                        
                                        <div class="name">
                                        	<a href="<?php echo U('Home/Goods/index',['id'=>$hot['id']]);?>">
                                            <!-- <h2>德国进口</h2> -->
                                            <?php echo ($hot["goods"]); ?>
                                            </a>
                                        </div>
                                        <div class="price">
                                            <font>￥<span><?php echo ($hot["price"]); ?></span></font> &nbsp; <?php echo ($hot["num"]); ?>
                                        </div>
                                    </div>
                                </li><?php endforeach; endif; ?>
                                <!-- 结束 -->
                                
                            </ul>
                        </div>
                    </div>
                    <a class="h_prev" href="javascript:void();">Previous</a>
                    <a class="h_next" href="javascript:void();">Next</a>
                </div>
            </div>
        </div>
    </div>
    
    <div class="i_t mar_10">
        <span class="fl">猜你喜欢</span>
    </div>    
    <div class="like">          
        <div id="featureContainer1">
            <div id="feature1">
                <div id="block1">
                    <div id="botton-scroll1">
                        <ul class="featureUL">
                            <?php if(is_array($like)): foreach($like as $key=>$like): ?><li class="featureBox">
                                <div class="box">
                                    <div class="imgbg">
                                        <a href="<?php echo U('Home/Goods/index',['id'=>$like['id']]);?>"><img src="/TP/Uploads/comm/<?php echo ($like["pic"]); ?>" width="160" height="136" /></a>
                                    </div>                                        
                                    <div class="name">
                                        <a href="<?php echo U('Home/Goods/index',['id'=>$like['id']]);?>">
                                        <?php echo ($like["goods"]); ?>
                                        </a>
                                    </div>
                                    <div class="price">
                                        <font>￥<span><?php echo ($like["price"]); ?></span></font> &nbsp; <?php echo ($like["num"]); ?>R
                                    </div>
                                </div>
                            </li><?php endforeach; endif; ?>
                        </ul>
                    </div>
                </div>
                <a class="l_prev" href="javascript:void();">Previous</a>
                <a class="l_next" href="javascript:void();">Next</a>
            </div>
        </div>
    </div>
    <div class="i_t mar_10">
    	<span class="floor_num">1F</span>
    	<span class="fl">手机</span>                
        <span class="i_mores fr">
        <?php if(is_array($name1)): foreach($name1 as $key=>$name1): ?><a href="#"><?php echo ($name1["name"]); ?></a>&nbsp; &nbsp; | &nbsp; &nbsp;<?php endforeach; endif; ?>
        </span>       
    </div>
    <div class="content">
        <!-- 中间开始 -->
        <div class="fresh_mid" width="940px">
        	<ul>
                <?php if(is_array($phone)): foreach($phone as $key=>$phone): ?><li width="180px">
                	<div class="name"><a href="<?php echo U('Home/Goods/index',['id'=>$phone['id']]);?>"><?php echo ($phone["goods"]); ?></a></div>
                    <div class="price">
                    	<font>￥<span><?php echo ($phone["price"]); ?></span></font> &nbsp; <?php echo ($phone["num"]); ?>R
                    </div>
                    <div class="img"><a href="<?php echo U('Home/Goods/index',['id'=>$phone['id']]);?>"><img  src="/TP/Uploads/comm/<?php echo ($phone["pic"]); ?>" width="185" height="155" /></a></div>
                </li><?php endforeach; endif; ?>
               
            </ul>
        </div>
        <!-- 中间结束 -->
     <!--    <div class="fresh_right">
        	<ul>
            	<li><a href="#"><img src="/TP/Public/images/fre_b1.jpg" width="260" height="220" /></a></li>
                <li><a href="#"><img src="/TP/Public/images/fre_b2.jpg" width="260" height="220" /></a></li>
            </ul>
        </div> -->
    </div>    
    <!--End 进口 生鲜 End-->
    <!--Begin 食品饮料 Begin-->
    <div class="i_t mar_10">
    	<span class="floor_num">2F</span>
    	<span class="fl">电脑</span>                                
        <span class="i_mores fr">
        <?php if(is_array($name2)): foreach($name2 as $key=>$name2): ?><a href="#"><?php echo ($name2["name"]); ?></a>&nbsp; &nbsp; | &nbsp; &nbsp;<?php endforeach; endif; ?>
        </span>       
    </div>
    <div class="content">
        <div class="fresh_mid">
        	<ul>
                <?php if(is_array($computer)): foreach($computer as $key=>$computer): ?><li>
                	<div class="name"><a href="<?php echo U('Home/Goods/index',['id'=>$computer['id']]);?>"><?php echo ($computer["goods"]); ?></a></div>
                    <div class="price">
                    	<font>￥<span><?php echo ($computer["price"]); ?></span></font> &nbsp;<?php echo ($computer["num"]); ?>R
                    </div>
                    <div class="img"><a href="<?php echo U('Home/Goods/index',['id'=>$computer['id']]);?>"><img src="/TP/Uploads/comm/<?php echo ($computer["pic"]); ?>" width="185" height="155" /></a></div>
                </li><?php endforeach; endif; ?>
              
            </ul>
        </div>
    </div>    
    <!--End 食品饮料 End-->
    <!--Begin 个人美妆 Begin-->
    <div class="i_t mar_10">
    	<span class="floor_num">3F</span>
    	<span class="fl">智能家居</span>                                
        <span class="i_mores fr">
        <?php if(is_array($name)): foreach($name as $key=>$name): ?><a href="#"><?php echo ($name["name"]); ?></a>&nbsp; &nbsp; | &nbsp; &nbsp;<?php endforeach; endif; ?>
        </span>                
    </div>
    <div class="content">
        <div class="fresh_mid">
        	<ul>
                <?php if(is_array($smart)): foreach($smart as $key=>$smart): ?><li>
                	<div class="name"><a href="<?php echo U('Home/Goods/index',['id'=>$smart['id']]);?>"><?php echo ($smart["goods"]); ?></a></div>
                    <div class="price">
                    	<font>￥<span><?php echo ($smart["price"]); ?></span></font> &nbsp; <?php echo ($smart["num"]); ?>R
                    </div>
                    <div class="img"><a href="<?php echo U('Home/Goods/index',['id'=>$smart['id']]);?>"><img src="/TP/Uploads/comm/<?php echo ($smart["pic"]); ?>" width="185" height="155" /></a></div>
                </li><?php endforeach; endif; ?>
               
            </ul>
        </div>
       
    </div>    
    <div class="i_t mar_10">
    	<span class="floor_num">4F</span>
    	<span class="fl">手机配件</span>                                
       <span class="i_mores fr">
        <?php if(is_array($name3)): foreach($name3 as $key=>$name3): ?><a href="#"><?php echo ($name3["name"]); ?></a>&nbsp; &nbsp; | &nbsp; &nbsp;<?php endforeach; endif; ?>
        </span>                    
    </div>
    <div class="content">
        <div class="fresh_mid">
        	<ul>
                <?php if(is_array($acc)): foreach($acc as $key=>$acc): ?><li>
                	<div class="name"><a href="<?php echo U('Home/Goods/index',['id'=>$acc['id']]);?>"><?php echo ($acc["goods"]); ?></a></div>
                    <div class="price">
                    	<font>￥<span><?php echo ($acc["price"]); ?></span></font> &nbsp; <?php echo ($acc["num"]); ?>R
                    </div>
                    <div class="img"><a href="<?php echo U('Home/Goods/index',['id'=>$acc['id']]);?>"><img src="/TP/Uploads/comm/<?php echo ($acc["pic"]); ?>" width="185" height="155" /></a></div>
                </li><?php endforeach; endif; ?>
            </ul>
        </div>
    </div> 
    <div class="b_btm_bg b_btm_c">
        <div class="b_btm">
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b1.png" width="62" height="62" /></td>
                <td><h2>正品保障</h2>正品行货  放心购买</td>
              </tr>
            </table>
			<table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b2.png" width="62" height="62" /></td>
                <td><h2>满38包邮</h2>满38包邮 免运费</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b3.png" width="62" height="62" /></td>
                <td><h2>天天低价</h2>天天低价 畅选无忧</td>
              </tr>
            </table>
            <table border="0" style="width:210px; height:62px; float:left; margin-left:75px; margin-top:30px;" cellspacing="0" cellpadding="0">
              <tr>
                <td width="72"><img src="/TP/Public/images/b4.png" width="62" height="62" /></td>
                <td><h2>准时送达</h2>收货时间由你做主</td>
              </tr>
            </table>
        </div>
    </div>
    <div class="b_nav">
    	<dl>                                                                                            
        	<dt><a href="#">新手上路</a></dt>
            <dd><a href="#">售后流程</a></dd>
            <dd><a href="#">购物流程</a></dd>
            <dd><a href="#">订购方式</a></dd>
            <dd><a href="#">隐私声明</a></dd>
            <dd><a href="#">推荐分享说明</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">配送与支付</a></dt>
            <dd><a href="#">货到付款区域</a></dd>
            <dd><a href="#">配送支付查询</a></dd>
            <dd><a href="#">支付方式说明</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">会员中心</a></dt>
            <dd><a href="#">资金管理</a></dd>
            <dd><a href="#">我的收藏</a></dd>
            <dd><a href="#">我的订单</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">服务保证</a></dt>
            <dd><a href="#">退换货原则</a></dd>
            <dd><a href="#">售后服务保证</a></dd>
            <dd><a href="#">产品质量保证</a></dd>
        </dl>
        <dl>
        	<dt><a href="#">友情链接</a></dt>
            <?php if(is_array($link)): foreach($link as $key=>$link): ?><dd><a href="<?php echo ($link["linkaddress"]); ?>"><?php echo ($link["linkname"]); ?></a></dd><?php endforeach; endif; ?>
        </dl>
        <div class="b_tel_bg">
        	<a href="#" class="b_sh1">新浪微博</a>            
        	<a href="#" class="b_sh2">腾讯微博</a>
            <p>
            服务热线：<br />
            <span>400-123-4567</span>
            </p>
        </div>
        <div class="b_er">
            <div class="b_er_c"><img src="/TP/Public/images/er.gif" width="118" height="118" /></div>
            <img src="/TP/Public/images/ss.png" />
        </div>
    </div>    
    <div class="btmbg">
		<div class="btm">
        	备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
            <img src="/TP/Public/images/b_1.gif" width="98" height="33" /><img src="/TP/Public/images/b_2.gif" width="98" height="33" /><img src="/TP/Public/images/b_3.gif" width="98" height="33" /><img src="/TP/Public/images/b_4.gif" width="98" height="33" /><img src="/TP/Public/images/b_5.gif" width="98" height="33" /><img src="/TP/Public/images/b_6.gif" width="98" height="33" />
        </div>    	
    </div>
    <!--End Footer End -->    
</div>
</body>


<!--[if IE 6]>
<script src="/TP/Public///letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>